Skip to content

Comments

feat(chat): add auto session-reuse, headless prompt, and open-webui filter#80

Open
AbdulShahzeb wants to merge 1 commit intoCoreWorxLab:feat/chat-apifrom
AbdulShahzeb:feat/chat-api
Open

feat(chat): add auto session-reuse, headless prompt, and open-webui filter#80
AbdulShahzeb wants to merge 1 commit intoCoreWorxLab:feat/chat-apifrom
AbdulShahzeb:feat/chat-api

Conversation

@AbdulShahzeb
Copy link

Summary

  • Added reuse_session flag to POST /api/chat — when true and no session_id is provided, reuses the most recently active session instead of creating a new one
  • Added CHAT_PROMPT env var for the chat API to load a different system prompt (e.g., CHAT_PROMPT=headless resolves to prompt/en/headless.md)
  • Created prompt/en/headless.md — text-optimised prompt with numeric formatting, markdown support, and no voice/TTS constraints
  • Added Open-WebUI filter (integrations/openwebui/caal_offload.py) that routes keyword-triggered messages to CAAL's chat API with session reuse, and supports reload caal / caal reload commands to hot-reload CAAL from the chat

Note

I am not too picky about where caal_offload.py is stored. integrations/openwebui/ is a temporary location - feel free to move it elsewhere.

Type of Change

  • New feature (non-breaking change that adds functionality)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant